package cn.com.assistant.service;

import cn.com.assistant.entity.AnswerEntity;
import cn.com.assistant.entity.CasAnswerEntity;
import cn.com.assistant.model.ImageDTO;
import cn.com.assistant.utils.ResponseMessage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

@Service
public interface CasAnswerService extends IService<CasAnswerEntity> {

    /**
     * 根据关联id查询子回复列表
     * @param principalId
     * @return
     */
    ResponseMessage findByPid(String principalId);

    /**
     * 更新记录
     * @param casAnswerEntity
     * @return
     */
    ResponseMessage update(CasAnswerEntity casAnswerEntity);

    /**
     * 更新二级问题回复图片
     * @param imageDTO
     * @return
     */
    ResponseMessage updateImage(ImageDTO imageDTO);

}